package com.nkym.wypan.model.req.fileinfo;/*
 * @ClassName MultipartUploadReq
 * @Desc TODO
 * @Author 19637
 * @Date 2023/6/11 10:22
 * @Version 1.0
 */

import lombok.Data;
import org.springframework.web.multipart.MultipartFile;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Data
public class ChunkUploadReq  implements Serializable {

    /**
     * 分片编号
     */
    @NotNull(message = "分片编号不能为空")
    private Integer chunkNumber;
    /**
     * 总分片大小
     */
    @NotNull(message = "分片总个数不能为空")
    private Integer totalChunks;
    /**
     * 唯一标识符
     */
    @NotBlank(message = "唯一标识不能为空")
    private String identifier;
    /**
     * 文件流
     */
    @NotNull(message = "文件不能为空")
    private MultipartFile file;
    /**
     * 文件总大小
     */

    @NotNull(message = "文件大小不能为空")
    private Long fileSize;
    private static final long serialVersionUID = 1L;
}

